/**
 * Created by ml620 on 2017/8/28 0028.
 */

import tool from 'src/util/tool'
const state = {
    dateLsit: [
        {date:'2017-08-07',price:'0',soldQuantity:'1',quantity:'10',ol:1},
        {date:'2017-08-17',price:'0',soldQuantity:'2',quantity:'10',ol:0},
        {date:'2017-08-27',price:'0',soldQuantity:'3',quantity:'10',ol:1},
        {date:'2017-09-17',price:'0',soldQuantity:'4',quantity:'10',ol:0},
        {date:'2017-08-27',price:'0',soldQuantity:'5',quantity:'10',ol:1},
    ],
};
const getters = {
    // vroles(state) {
    //   return state.validRole
    // },
}
const mutations = {
    setDateList(state, dateLsit){
        state.dateLsit = dateLsit
    },
    setIsinEditModal(state, isinEditModal){
        state.isinEditModal = isinEditModal
    },
    setIsinOtherEdit(state, isinOtherEdit){
        state.isinOtherEdit = isinOtherEdit
    }
}
const actions = {
    // addPrice({commit}, num){
    //   commit('addPrice', num)
    // }
}

export default{
    namespaced: true,
    state,
    getters,
    actions,
    mutations
}